package chpt02;

public class ImplicitTypeConvert {
	public static void main(String[] args) {
		double x = 45.78 + 1; // int转换为double
		long y = 2 + 3L;      // int转换为long
		char c = 'A' + 1;     // char转换为int，计算后转为char型
		int acode = 'B' - 1;  // char转换为int
		System.out.println(x + " " + y + " " + c + " " + acode);
	}
}
